
class TBKListModelEntity {
  List<TBKListModelData> data;
  var code;
  String msg;

  TBKListModelEntity({this.data, this.code, this.msg});

  TBKListModelEntity.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      data = new List<TBKListModelData>();
      (json['data']['list'] as List).forEach((v) {
        data.add(new TBKListModelData.fromJson(v));
      });
    }
    code = json['code'];
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data']['list'] = this.data.map((v) => v.toJson()).toList();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    return data;
  }
}

class TBKListModelData {
 String num_iid;//	商品ID
String title;//	商品名称
String pict_url;//	商品主图
String reserve_price;//	商品一口价格
String zk_final_price	;//商品折扣价格
String volume	;//30天销量
String commission_rate;//	佣金比率(%)，1550表示15.5%
String commission;//	佣金
String coupon_amount;//	优惠券面额

  TBKListModelData(
      {this.num_iid,
      this.title,
      this.pict_url,
      this.reserve_price,
      this.zk_final_price,
      this.volume,
      this.commission_rate,
      this.commission,
      this.coupon_amount
      });

  TBKListModelData.fromJson(Map<String, dynamic> json) {
    num_iid = json['num_iid'];
    title = json['title'];
    pict_url = json['pict_url'];
    reserve_price = json['reserve_price'];
    zk_final_price = json['zk_final_price'];
    volume = json['volume'];
     commission_rate = json['commission_rate'];
      commission = json['commission'];
      coupon_amount = json['coupon_amount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['num_iid'] = this.num_iid;
    data['title'] = this.title;
    data['pict_url'] = this.pict_url;
    data['reserve_price'] = this.reserve_price;
    data['zk_final_price'] = this.zk_final_price;
    data['volume'] = this.volume;
    data['commission_rate'] = this.commission_rate;
    data['commission'] = this.commission;
    data['coupon_amount'] = this.coupon_amount;
    return data;
  }
}